package com.hellohoper.script.config.api.feign;

import com.hellohoper.script.config.admin.app.dao.pojo.ScriptConfig;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 配置查询服务
 * Created by hk on 17/8/19.
 */
@FeignClient(value = "SCRIPT-CONFIG-API-APP", configuration = FullLogConfiguration.class)
public interface ScriptConfigFeign {

    @RequestMapping(value = "/config/api/search", method = RequestMethod.GET)
    ScriptConfig searchConfig(@RequestParam("appName") String appName, @RequestParam("scriptName") String scriptName);

    @RequestMapping(value = "/config/api/searchList", method = RequestMethod.GET)
    List<ScriptConfig> searchConfig(@RequestParam("appName") String appName);
}
